<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>${name}明细</title>
</head>
<body>
<c:set var="sumService" value="0"></c:set>
<c:set var="sumMdse" value="0"></c:set>
	<h3 class="app-title">${dayName}${name}明细</h3>
	<h4 class="app-title-secondary">服务项目明细</h4>
	<ul class="am-list am-list-static am-padding-left-sm am-margin-0 am-text-sm">
		<c:forEach items="${serviceList}" var="s">
			<li><ul class="am-avg-sm-2"><li>${s.mdseServiceName} x ${s.mdseNum}</li><li class="am-text-right am-padding-right-sm"><fmt:formatNumber value="${s.price}" pattern="#.0"/>元</li></ul></li>
			<c:set var="sumService" value="${sumService+s.price}"></c:set>
		</c:forEach>
		<li class="am-text-right">合计：<fmt:formatNumber value="${sumService}" pattern="#.0"/>元&nbsp;&nbsp;</li>
	</ul>
	<h4 class="app-title-secondary">外卖商品明细</h4>
	<ul class="am-list am-list-static am-padding-left-sm am-margin-0 am-text-sm">
		<c:forEach items="${mdseList}" var="s">
			<li><ul class="am-avg-sm-2"><li>${s.mdseServiceName} x ${s.mdseNum}</li><li class="am-text-right am-padding-right-sm"><fmt:formatNumber value="${s.price}" pattern="#.0"/>元</li></ul></li>
			<c:set var="sumMdse" value="${sumMdse+s.price}"></c:set>
		</c:forEach>
		<li class="am-text-right">合计：<fmt:formatNumber value="${sumMdse}" pattern="#.0"/>元&nbsp;&nbsp;</li>
	</ul>
	<h2 class="am-text-blue am-text-right am-padding-right-sm">总计：<fmt:formatNumber value="${sumService+sumMdse}" pattern="#.0"/>元</h2>
</body>
</html>
